//
//  CourseStudyMenuCell.h
//  ShowYork
//
//  Created by hxh on 2020/9/2.
//  Copyright © 2020 hxh. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol LessonStudyMenuViewDelegate <NSObject>

@optional
- (void)menuDidSelectAtIndex:(NSInteger)index;
- (void)menuDidSelectClassAtIndex:(NSInteger)index;
- (void)menuSwitchWithTouchPoint:(CGPoint)point status:(BOOL)status;

@end

@interface LessonStudyMenuView : UIView

@property (nonatomic,weak)id<LessonStudyMenuViewDelegate>delegate;

- (instancetype)initWithTitles:(NSArray*)titles selectedStatus:(BOOL)status;

- (void)updateStatus:(BOOL)status;

- (void)showLine;
- (void)hideLine;

@end

NS_ASSUME_NONNULL_END
